import AppAudioPlayer from "@/common/audio/AppAudioPlayer"
import type BaseAudioPlayer from "@/common/audio/BaseAudioPlayer"
import H5AudioPlayer from "@/common/audio/H5AudioPlayer"
import PlusAudioPlayer from "./audio/PlusAudioPlayer";


const systemInfo = uni.getSystemInfoSync();
const isH5 = systemInfo.uniPlatform === 'web';

const audioPlayer : BaseAudioPlayer = isH5
	? new H5AudioPlayer()
	: new AppAudioPlayer();

export default audioPlayer;